@import url('./variables.scss');

.commonCard{
  position: relative;

  + .commonCard {
    margin-top: 16px
  }

  .el-card__header {
    padding: 16px
  }

  h2 {
    margin: 0;
    font-size: 16px;
    position: relative;

    .extra {
      position: absolute;
      right: 0;
      top: 0
    }
  }
}

.cycleTabWrapper{
  .tab-title-box {
    height: 40px;
    line-height: 40px;
    a.tab-title{
      display: inline-block;
      padding: 0 62px;
      &.active_p {
        padding: 0 41.8px
      }
      background: $green;
      font-size: 15px;
      font-family: PingFang SC;
      // font-weight: bold;
      color: #333333;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      position: relative;
      background: linear-gradient(90deg, #FAFAFA 0%, #F0F0F0 100%);
      // box-shadow: 6px -2px 5px -5px #399980;

      // + a.tab-title {
      //   margin-left: -10px;
      // }

      &.active, &:hover{
        background: #fff;
        // font-size: 22px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #333333;
      }
    }
  }
  .cycleTabContent{
    border: none;
    border-top-left-radius: 0;
  }

  .tab-content-box{
    background: #fff;
    padding: 20px 30px;
    border-radius: $--border-radius-base;
    border-top-left-radius: 0;
    &.active {
      padding: 30px 20px;
    }
  }
}

.commonDrawer{
  .el-drawer__header {
    font-size: 17px;
    font-weight: bold;
    color: #333333;
  }
  .el-drawer, &.el-drawer{
    // position: relative;

    .drawer-content{
      padding: 0 16px;
      height: calc(100vh - 146px);
      overflow-y: auto;
    }

    .drawer-footer{
      position: absolute;
      left: 0;
      bottom: 0;
      right: 0;
      z-index: 10;
      padding: 16px;
      background: #fff;
    }
  }
}

.comoonCarousel{
  .el-carousel__button{
    height: 7px;
    width: 50px;
  }
  .el-carousel__indicator.is-active button {
    background-color: #DA473A;
    opacity: 1;
  }
}

.whitePanel {
  background: #fff;
  padding: 30px 30px 20px;
  line-height: 1;

  + .home-part {
    margin-top: 30px
  }

  > h2{
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;

    .more{
      font-size: 15px;
      font-family: PingFang SC;
      color: #6E645A;

      span.icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        line-height: 12px;
        border-radius: 8px;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #6E645A;
        transform: scale(0.8);

        i {
          color: #6E645A;
          font-size: 12px;
          font-weight: bold;
        }
      }

    }
  }
}

.home-part{
  background: #fff;
  padding: 30px 30px 20px;
  line-height: 1;

  + .home-part {
    margin-top: 30px
  }

  > h2{
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;

    &::before{
      content: '';
      display: block;
      position: absolute;
      width: 10px;
      top: 0;
      bottom: 0;
      left: 0;
      background: #DA473A;
    }

    .more{
      font-size: 15px;
      font-family: PingFang SC;
      ;
      color: #6E645A;

      span.icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        line-height: 12px;
        border-radius: 8px;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #6E645A;
        transform: scale(0.8);

        i {
          color: #6E645A;
          font-size: 12px;
          font-weight: bold;
        }
      }

    }
  }
}

.innelPanel{
  background: #FAFAFA;
  border-radius: 30px;
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;

  > h2 {
    padding-left: 20px;
    margin: 0;
    position: relative;
    font-size: 17px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #6E645A;
    line-height: 72px;
    line-height: 20px;
    margin-bottom: 20px;

    &::before{
      content: '';
      display: block;
      position: absolute;
      width: 5px;
      height: 20px;
      border-radius: 3px;
      background: #6E645A;
      top: 0;
      left: 0;
    }
  }
}

.commonTab{
  .el-tabs__item{
    font-size: 17px;
    color: #6E645A;
    height: 56px;
    line-height: 56px;
    padding: 0 32px !important;
    position: relative;
    box-shadow: none;

    &.is-active{
      font-weight: bold;
      color: #333333;

      &::after{
        content: '';
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 4px;
        background: linear-gradient(90deg, $--app-linear-gradient-stop1 0%, $--app-linear-gradient-stop2 100%);
      }
    }
  }

  .el-tabs__active-bar{
    display: none;
  }

  .el-tabs__nav-wrap{
    &::after{
      background: #E8E8E8;
    }
  }
}

.quikWrapper{
  .quikBox{
    background: $--app-light-color2;
    border: 2px solid $--app-light-color2;
    border-radius: 20px;
    position: relative;
    padding: 20px 30px;
    display: flex;
    align-items: center;

    &:hover{
      cursor: pointer;
      background: $--app-light-color2;
      border: 2px solid $--app-light-color3;
    }

    + .quikBox{
      margin-top: 20px
    }

    > img.sort {
      height: 24px;
      width: 24px
    }

    > img.titleIcon {
      height: 60px;
      width: 60px;
      margin-left: 20px;
    }

    > b.title {
      font-size: 17px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #333333;
      line-height: 24px;
      margin-left: 10px;
    }

    > span{
      font-size: 13px;
      font-family: PingFang SC;
      color: #999999;
      line-height: 24px;
      margin-left: 10px;
    }

    > .el-icon-arrow-right{
      position: absolute;
      top: 50%;
      right: 30px;
      font-size: 14px;
      color: #CCCCCC;
      margin-top: -7px
    }
  }
}

.flex {
	display: flex;
	justify-content: center;
	align-items: center;
}
.flex.cloum {
	flex-direction: column;
}
.flex.justify-s {
	justify-content: flex-start;
}
.flex.justify-e {
	justify-content: flex-end;
}
.flex.align-s {
	align-items: flex-start;
}
.flex.align-e {
	align-items: flex-end;
}
.flex.justify-sb {
	justify-content: space-between;
}
.flex.wrap {
	flex-wrap: wrap;
}
.header-h {
  font-size: 16px;
  font-weight: bold;
  margin: 30px 0 20px;
}
.header-h.active {
  margin-top: 0;
}
.mr10 {
  margin-right: 10px;
}
.mr20 {
  margin-right: 20px;
}
.mt20 {
  margin-top: 20px;
}
.mb20 {
  margin-bottom: 20px;
}
.line-one {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}


.add-drawer {
  .el-drawer__body {
    overflow: auto !important;
  }

  .el-drawer__header{
    font-weight: bold;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: black;
  }
}


.cad-box {
  padding: 30px 30px;
  background-color: white;
  border-radius: 7px;
  border:1px solid #FAFAFB;
}
